docs: Do not use G_CONST_RETURN
authorJavier Jardón <jjardon@gnome.org>
Mon, 6 Jun 2011 18:07:23 +0000 (19:07 +0100)
committerJavier Jardón <jjardon@gnome.org>
Fri, 10 Jun 2011 12:07:54 +0000 (13:07 +0100)
docs/CODING-STYLE
docs/reference/gtk/question_index.sgml

index 7b2e8f23fd54e52bf05298c922e00dd8689566e1..ae6e9fbc7c223e93b4049fe2f46f1db6134a5ee2 100644 (file)
@@ -421,10 +421,10 @@ definitions should be vertically aligned in three columns:
 The maximum width of each column is given by the longest element in the
 column:
 
-  void                  gtk_type_set_property (GtkType      *type,
-                                               const gchar  *value,
-                                               GError      **error);
-  G_CONST_RETURN gchar *gtk_type_get_property (GtkType      *type);
+  void         gtk_type_set_property (GtkType      *type,
+                                      const gchar  *value,
+                                      GError      **error);
+  const gchar *gtk_type_get_property (GtkType      *type);
 
 It is also possible to align the columns to the next tab:
 
index 24f6b9941306814479df00c8c581974520e58c95..5f72d8a099612177a9993270ac3bf0815e521633 100644 (file)
@@ -102,8 +102,8 @@ state (explained in its documentation).
 </para>
 
 <para>
-For strings returned from functions, they will be declared "const" (using
-#G_CONST_RETURN) if they should not be freed. Non-const strings should be
+For strings returned from functions, they will be declared "const"
+if they should not be freed. Non-const strings should be
 freed with g_free(). Arrays follow the same rule. If you find an
 undocumented exception to the rules, please report a bug to <ulink
 url="http://bugzilla.gnome.org">http://bugzilla.gnome.org</ulink>.